package fristphase.day9_07.my_plane_battle;

import javax.swing.*;

public class BigEnemyPlane extends FlyingObject implements EnemyScore{
    BigEnemyPlane(){
        super(66,80);
    }
    public void step(){
        y += speed;
    }
    int index = 0;
    public ImageIcon getImage(){
        ImageIcon img =null;
        if(state == LIVE){
            img = Images.bigEnemyPlane;
        }else if(state == DEAD){
            img = Images.boms[index++];
            if(index == 4){
                state = REMOVE;
            }
        }


        return img;
    }
    public int getScore(){
        return 100;
    }
}
